<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">



<h:head>
	<title><h:outputText value="#{bundle['titulo_principal']}" /></title>

</h:head>

<h:body>
			<h:form>
    		<p:panel id= "painel" header="#{bundle['menu_esquemaclasseObjetovisualizar']}" >
    		<p:dataTable var="umaClasseObjeto" value="#{controle.esquema.listas.clista}" id="COList"
    				paginator="true" rows="10"  
					paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
					rowsPerPageTemplate="5,10,15"
					style="font-size: 11px; man-height: 2000px; min-width: 800px;"> 
  
	        <f:facet name="header">  
	            <h:outputText value="#{bundle['menu_esquemaclasseObjetovisualizar']}"/>
	        </f:facet>  
	  
	        <p:column headerText="#{bundle['lbl_nome']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umaClasseObjeto.nome}" />  
	                </f:facet>  
	                <f:facet name="input">  
	                    <h:outputText value="#{umaClasseObjeto.nome}"/>  
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>  
	  
	        <p:column headerText="#{bundle['lbl_descricao']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umaClasseObjeto.descricao}" />
	                </f:facet>  
	                <f:facet name="input">  
	                    <p:inputTextarea value="#{umaClasseObjeto.descricao}" />
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>  
	  
	        <p:column headerText="#{bundle['lbl_superior']}" >  
	            <p:cellEditor>
	                <f:facet name="output">
	                    <p:dataList value="#{umaClasseObjeto.superior}" var="superiores" itemType="circle">  
    						#{superiores.nome} 
						</p:dataList> 
	                </f:facet>
	                <f:facet name="input">
	                	<p:selectManyMenu id="superiorC" value="#{umaClasseObjeto.superior}">
							<f:selectItems value="#{controle.esquema.listas.clista}"
                    				var="Sclasseobjeto" itemLabel="#{Sclasseobjeto.nome}"
                    				itemValue="#{Sclasseobjeto}" />
						</p:selectManyMenu>
	                </f:facet>
	            </p:cellEditor>  
	        </p:column>  
	  
	        <p:column headerText="#{bundle['lbl_tipodeclasse']}" >
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umaClasseObjeto.tipo}" />  
	                </f:facet>  
	                <f:facet name="input">  
	                    <p:selectOneMenu id="tipo" value="#{umaClasseObjeto.tipo}">
							<f:selectItem itemLabel="Estrutural" itemValue="Estrutural" />
							<f:selectItem itemLabel="Auxiliar" itemValue="Auxiliar" />
							<f:selectItem itemLabel="Abstrata" itemValue="Abstrata" />
					</p:selectOneMenu>
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>  
	  
	  		<p:column headerText="#{bundle['lbl_atributosobrigatorios']}" >  
	            <p:cellEditor>  
	                <f:facet name="output">
	                	<p:dataList value="#{umaClasseObjeto.deve}" var="COdeve" itemType="circle">  
    						#{COdeve.nome}
						</p:dataList> 
	                </f:facet>  
	                <f:facet name="input">  
	                    <p:selectManyMenu value="#{umaClasseObjeto.deve}">
							<f:selectItems value="#{controle.esquema.listas.tlista}"
		                    	var="Scotad" itemLabel="#{Scotad.nome}"
		                    	itemValue="#{Scotad}" />
		                    <f:selectItems value="#{controle.esquema.listas.slista}"
		                    	var="Scosid" itemLabel="#{Scosid.nome}" 
		                    	itemValue="#{Scosid}" />
						</p:selectManyMenu> 
	                </f:facet>
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="#{bundle['lbl_atributosopcionais']}" >  
	            <p:cellEditor>  
	                <f:facet name="output">
	                		<p:dataList value="#{umaClasseObjeto.pode}" var="COpode" itemType="circle">  
    							#{COpode.nome}
							</p:dataList>
	                </f:facet>  
	                <f:facet name="input">  
	                    <p:selectManyMenu value="#{umaClasseObjeto.pode}">
							<f:selectItems value="#{controle.esquema.listas.tlista}"
		                   		var="Scotap" itemLabel="#{Scotap.nome}"
		                    	itemValue="#{Scotap}" />
		                    <f:selectItems value="#{controle.esquema.listas.slista}"
		                    	var="Scosip" itemLabel="#{Scosip.nome}" 
		                   		itemValue="#{Scosip}" />
						</p:selectManyMenu> 
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="Options">  
	            <p:rowEditor />  
	        </p:column>  
	  
	    </p:dataTable>
    		
    		</p:panel>
    		</h:form>
    </h:body>
</html>